﻿-- add column FolderName
if not exists (select * from information_schema.columns where table_name = 'Users' and column_name = 'Disabled')
begin
	ALTER table Users add Disabled bit not null default 0
end
go

-- add column DateDownloaded
if not exists (select * from information_schema.columns where table_name = 'UserHistory' and column_name = 'DateDownloaded')
begin
	ALTER table UserHistory add DateDownloaded datetime not null default getdate()
end
go
